
      function onContextMenu(e,row){
          if (row){
              e.preventDefault();
              $(this).treegrid('select', row.id);
              $('#treegrid_menu').menu('show',{
                  left: e.pageX,
                  top: e.pageY
              });                
          }
      }

   var data  = [{
      id:1,
      name:"角色名称",
      size:"是",
      date:"02/19/2010",
      children:[{
          id:2,
          name:"Program Files",
          size:"是",
          date:"03/20/2010",
          children:[{
            id:21,
            name:"Java",
            size:"是",
            date:"01/13/2010",
            state:"closed",
            children:[{
              id:211,
              name:"java.exe",
              size:"是",
              date:"01/13/2010"
            },{
              id:212,
              name:"jawt.dll",
              size:"否",
              date:"01/13/2010"
            }]
          }]
        }]
    }];


  $(document).ready(function(){
       $('#treegrid').treegrid("loadData",data);
  });